package com.hzit.bj1804.dian.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * MEMBERBASE
 * @author 
 */
public class Memberbase implements Serializable {
    private int mid;

    private String mname;

    private Long mphone;

    private String memail;

    private String mpassword;

    private Date createtime;

    private String mstatus;

    private static final long serialVersionUID = 1L;

    public int getMid() {
        return mid;
    }

    public void setMid(int mid) {
        this.mid = mid;
    }

    public String getMname() {
        return mname;
    }

    public void setMname(String mname) {
        this.mname = mname;
    }

    public Long getMphone() {
        return mphone;
    }

    public void setMphone(Long mphone) {
        this.mphone = mphone;
    }

    public String getMemail() {
        return memail;
    }

    public void setMemail(String memail) {
        this.memail = memail;
    }

    public String getMpassword() {
        return mpassword;
    }

    public void setMpassword(String mpassword) {
        this.mpassword = mpassword;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getMstatus() {
        return mstatus;
    }

    public void setMstatus(String mstatus) {
        this.mstatus = mstatus;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Memberbase other = (Memberbase) that;
        return
            (this.getMname() == null ? other.getMname() == null : this.getMname().equals(other.getMname()))
            && (this.getMphone() == null ? other.getMphone() == null : this.getMphone().equals(other.getMphone()))
            && (this.getMemail() == null ? other.getMemail() == null : this.getMemail().equals(other.getMemail()))
            && (this.getMpassword() == null ? other.getMpassword() == null : this.getMpassword().equals(other.getMpassword()))
            && (this.getCreatetime() == null ? other.getCreatetime() == null : this.getCreatetime().equals(other.getCreatetime()))
            && (this.getMstatus() == null ? other.getMstatus() == null : this.getMstatus().equals(other.getMstatus()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getMname() == null) ? 0 : getMname().hashCode());
        result = prime * result + ((getMphone() == null) ? 0 : getMphone().hashCode());
        result = prime * result + ((getMemail() == null) ? 0 : getMemail().hashCode());
        result = prime * result + ((getMpassword() == null) ? 0 : getMpassword().hashCode());
        result = prime * result + ((getCreatetime() == null) ? 0 : getCreatetime().hashCode());
        result = prime * result + ((getMstatus() == null) ? 0 : getMstatus().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", mid=").append(mid);
        sb.append(", mname=").append(mname);
        sb.append(", mphone=").append(mphone);
        sb.append(", memail=").append(memail);
        sb.append(", mpassword=").append(mpassword);
        sb.append(", createtime=").append(createtime);
        sb.append(", mstatus=").append(mstatus);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}